home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
MacWorld 1997 August
/
Macworld (1997-08).dmg
/
Serious Demos
/
Crimson Demo
/
Crimson Basic Manual
/
Crimson Basic Manual.rsrc
/
TEXT_1700_Prop,Meth,Evt Reference.txt
< prev
next >
Wrap
Text File
|
1997-06-17
|
17KB
|
348 lines
Window
Properties
Name Values Description
Title Any string Window Title.
Enabled True/False
Visible True/False
UseColour True/False Does window use
background colour.
ColourRed Integer Red RGB value.
ColourGreen Integer Green RGB value.
ColourBlue Integer Blue RGB value.
Height Integer
Width Integer
PositionX Integer
PositionY Integer
HasCloseBox True/False Design time only. Does
Window have a close box.
ClickToFront True/False Window behaviour. Does click
on Window activate control
under mouse (true) or just
bring window to front (false).
Methods
Name Parameters Description
OpenWindow None Opens the Window.
CloseWindow None Closes the Window.
ShowWindow None Displays an invisible
(hidden) Window.
HideWindow None Hides a Window.
Events
Name Parameters Description
Click None Click.
DClick None Double Click.
MouseDown X position,Y position Mouse Down
MouseUp X position,Y position Mouse Up.
OnClose None Fired when Window is
closed using Windows
Close box.
OnMenu menu_id,menu_item Fired when user picks a
menu item whilst this
window is active.
GotFocus None Fired when this Window
becomes active
----------------------------------------------
Button
Properties
Name Values Description
Caption any string Caption in centre of button.
Enabled True/False
Visible True/False
Appearance 0=Flat Button may have a standard
1=3D Flat appearance or a 3D
border.
Height Integer
Width Integer
PositionX Integer
PositionY Integer
ColourRequired True/False Design Time only. Standard
white or custom colour for
centre and frame.
FillColourRed Integer Design Time only. RGB red
value.
FillColourGreen Integer Design Time only. RGB green
value.
FillColourBlue Integer Design Time only. RGB blue
value.
FrameColourRed Integer Design Time only. RGB red
value.
FrameColourGreen Integer Design Time only. RGB green
value.
FrameColourBlue Integer Design Time only. RGB blue
value.
Methods
None.
Events
Name Parameters Description
Click None Click.
DClick None Double Click.
MouseDown X position,Y position Mouse Down
MouseUp X position,Y position Mouse Up.
----------------------------------------------
ListBox
Properties
Name Values Description
Enabled True/False
Appearance 0=Flat ListBox may have a standard
1=3D Flat appearance or a 3D
insert.
MultiSel True/False Can multiple items in the
List Box be selected at the
same time.
Height Integer Design Time only.
Width Integer Design Time only.
PositionX Integer Design Time only.
PositionY Integer Design Time only.
Methods
Name Parameters Description
SetRow in:row number (Integer) Set a row in the List Box
value (String) to the given value.
InsertRow In:row number (Integer) Insert a row in the List
value (String) Box with the given value.
GetRow In:row number (Integer) Get the string contained
Out: value (String) in a givenrow.
IsSelected In:row number (Integer) Returns selected state
Out: True/False of row.
GetSelected In:row number (Integer) Finds the first selected
Out: row number (Integer) row after but including
the given row.
DeleteRow In: row number (integer) Deletes count rows from
count (Integer) the List Boxstarting at
the given row.
SetSelected In: row number,True/False Sets a row in the listbox
to either Selected or
Unselected.
Events
Name Parameters Description
Click None Click.
DClick None Double Click.
MouseDown X position,Y position Mouse Down
MouseUp X position,Y position Mouse Up.
OnKey key pressed (ascii value) Reports the ascii value
of a key pressed while
the ListBox is active.
AutoInd Set to True if event was
fired by the Operating
System in response to a
key being held down.
----------------------------------------------
Rectangle
Properties
Name Values Description
Enabled True/False
Visible True/False
Appearance 0=Flat Standard Flat appearance.
1=3D 3D border.
2=ColourFill Filled coloured rectangle.
3=ColourBorder Flat but coloured.
Height Integer
Width Integer
PositionX Integer
PositionY Integer
ColourRed Integer Red part of RGB colour.
ColourGreen Integer Green part of RGB colour.
ColourBlue Integer Blue part of RGB colour.
Methods
None.
Events
Name Parameters Description
Click None Click.
DClick None Double Click.
MouseDown X position,Y position Mouse Down
MouseUp X position,Y position Mouse Up.
---------------------------------------------
Static Text
Properties
Name Values Description
Visible True/False
Height Integer
Width Integer
PositionX Integer
PositionY Integer
TextJustify Left/Right/Centre Design Time only.
Value Any string Design Time only. Displayed
string.
Methods
None.
Events
None.
---------------------------------------------
Colour Icon Button
Properties
Name Values Description
Enabled True/False
Visible True/False
PositionX Integer
PositionY Integer
State 0=Off/1=On On/Off state of button
AutoState True/False If True, button displays On
state when pressed,
Otherwise set manually
with State property.
Off_Cicn_Id Integer Design Time only.Resource
id of 'cicn' in Off state.
On_Cicn_id Integer Design Time only.Resource
id of 'cicn' in On state.
Methods
None.
Events
Name Parameters Description
Click None Click.
DClick None Double Click.
MouseDown X position,Y position Mouse Down
MouseUp X position,Y position Mouse Up.
----------------------------------------------
Check Box
Properties
Name Values Description
Caption any string Caption of Check Box.
Enabled True/False
Visible True/False
Height Integer
Width Integer
PositionX Integer
PositionY Integer
Value Integer On/Off state of Check Box.
Methods
None.
Events
Name Parameters Description
MouseDown X position,Y position Mouse Down
----------------------------------------------
Radio Button
Properties
Name Values Description
Caption any string Caption of Radio Button.
Enabled True/False
Visible True/False
Height Integer
Width Integer
PositionX Integer
PositionY Integer
Value Integer On/Off state of Radio Button.
Radio_Group Integer Design Time only. Group to
which Radio Button belongs.
Setting a Radio Button on
will set all others in the
same group off.
Methods
None.
Events
Name Parameters Description
MouseDown X position,Y position Mouse Down
---------------------------------------------
Editable Text
Properties
Name Values Description
Enabled True/False
Visible True/False
Appearance Integer Standard Flat appearance
or 3D insert.
Design Time only.
Height Integer Design Time only.
Width Integer Design Time only.
PositionX Integer Design Time only.
PositionY Integer Design Time only.
DataType Any/Integer/Float Design Time only
Methods
None.
Events
None.
---------------------------------------------
Picture
Properties
Name Values Description
Enabled True/False
Visible True/False
Height Integer
Width Integer
PositionX Integer
PositionY Integer
PICT_id Integer Id of PICT resource.
Methods
None.
Events
Name Parameters Description
Click None Click
DClick None Double Click
Pop Up Menu
Properties
Name Values Description
Enabled True/False
Visible True/False
Height Integer
Width Integer
PositionX Integer
PositionY Integer
Value Integer Currently selected entry.
Methods
None.
Events
Name Parameters Description
MouseDown X position,Y position Mouse Down
MouseUp X position,Y position Mouse Up